<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<title>DataGrid Footer Row - jQuery EasyUI Demo</title>
	<link rel="stylesheet" type="text/css" href="../themes/default/easyui.css">
	<link rel="stylesheet" type="text/css" href="../themes/icon.css">
	<link rel="stylesheet" type="text/css" href="demo.css">
	<script type="text/javascript" src="../jquery-1.7.2.min.js"></script>
	<script type="text/javascript" src="../jquery.easyui.min.js"></script>
	<script>
		$(function(){
			$('#tt').datagrid({
				//url: 'datagrid_data3.json',
				//title: 'DataGrid',
				//width: 800,
				//height: 220,
				fitColumns: true,
				nowrap:false,
				rownumbers:true,
				showFooter:true,
				columns:[[
					{field:'itemid',title:'Item ID',width:80},
					{field:'productid',title:'Product ID',width:120},
					{field:'listprice',title:'List Price',width:80,align:'right'},
					{field:'unitcost',title:'Unit Cost',width:80,align:'right'},
					{field:'attr1',title:'Attribute',width:250},
					{field:'status',title:'Status',width:60,align:'center'}
				]]
			});
		});
	</script>
</head>
<body>
	<h2>DataGrid - Footer Row</h2>
	<div class="demo-info" style="margin-bottom:10px">
		<div class="demo-tip icon-tip"></div>
		<div>Display summary information in footer rows.</div>
	</div>
	
	<table id="tt">		
		<tbody>
			<tr>
				<td field="itemid">1</td>
				<td field="productid">001</td>
				<td field="listprice">100</td>
				<td field="unitcost">80</td>
				<td field="attr1">red</td>
				<td field="status">P</td>
			</tr>
			<tr>
				<td field="itemid">2</td>
				<td field="productid">002</td>
				<td field="listprice">100</td>
				<td field="unitcost">80</td>
				<td field="attr1">red</td>
				<td field="status">P</td>
			</tr>
			<tr>
				<td field="itemid">3</td>
				<td field="productid">003</td>
				<td field="listprice">100</td>
				<td field="unitcost">80</td>
				<td field="attr1">red</td>
				<td field="status">P</td>
			</tr>
		</tbody>
	</table>
</body>
</html>